raar.agent.process.sensor
Class RARegionSensor_Pie

java.lang.Object
  extended by raar.agent.process.RAProcess
      extended by raar.agent.process.sensor.RASensor
          extended by raar.agent.process.sensor.RARegionSensor
              extended by raar.agent.process.sensor.RARegionSensor_Pie
All Implemented Interfaces:
java.io.Serializable, RAAgentDependentProcess
Direct Known Subclasses:
RACameraSensor, RAObjectSensor, RASonarSensor

public abstract class RARegionSensor_Pie
extends RARegionSensor

A sensor with a certain region of perception (a cone within which the sensor sees something).

Some JavaDoc info has been omitted since everything is soooo clear...

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.agent.process.sensor.RASensor
agent, output, outputName
 
Fields inherited from class raar.agent.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Fields inherited from interface raar.agent.process.RAAgentDependentProcess
NO_AGENT_DEFINED
 
Constructor Summary
RARegionSensor_Pie(java.lang.String outputName, RAAgent agent)
          Construct.
 
Method Summary
 double getDirection()
           
 double getRadius()
           
 java.awt.Shape getRegion(double currentX, double currentY, double currentA)
          Return the region within which the sensor can see.
 double getSectionWidth()
           
 void setDirection(double d)
           
 void setRadius(double r)
           
 void setSectionWidth(double s)
           
 
Methods inherited from class raar.agent.process.sensor.RARegionSensor
run
 
Methods inherited from class raar.agent.process.sensor.RASensor
acceptsInput, dumpRegisters, execute, explain, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput, toString
 
Methods inherited from class raar.agent.process.RAProcess
clone, getProcessName, getSourceCode, reset, setProcessName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RARegionSensor_Pie

public RARegionSensor_Pie(java.lang.String outputName,
                          RAAgent agent)
Construct.

Method Detail

getDirection

public double getDirection()

setDirection

public void setDirection(double d)

getSectionWidth

public double getSectionWidth()

setSectionWidth

public void setSectionWidth(double s)

getRadius

public double getRadius()

setRadius

public void setRadius(double r)

getRegion

public java.awt.Shape getRegion(double currentX,
                                double currentY,
                                double currentA)
Return the region within which the sensor can see.

Specified by:
getRegion in class RARegionSensor